package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CUSTOM_RECORD database table.
 * 
 */
@Entity
@Table(name="CUSTOM_RECORD")
@NamedQuery(name="CustomRecord.findAll", query="SELECT c FROM CustomRecord c")
public class CustomRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CUSTOM_RECORD_CRID_GENERATOR", sequenceName="SEQ_19")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CUSTOM_RECORD_CRID_GENERATOR")
	@Column(name="CR_ID")
	private long crId;

	@Column(name="CONT_ID")
	private BigDecimal contId;

	@Column(name="CONT_LINK_MAN")
	private String contLinkMan;

	@Column(name="CR_CONTAIN")
	private String crContain;

	@Column(name="CR_EXCUTE")
	private String crExcute;

	@Column(name="CR_FEEDBACK")
	private String crFeedback;

	@Column(name="CR_REMARKS")
	private String crRemarks;

	@Temporal(TemporalType.DATE)
	@Column(name="CR_START_DATETIME")
	private Date crStartDatetime;

	@Column(name="CR_STATE")
	private String crState;

	@Column(name="CR_THEME")
	private String crTheme;

	@Column(name="CUSTOMER_ID")
	private BigDecimal customerId;

	@Column(name="CUSTOMER_NAME")
	private String customerName;

	//bi-directional many-to-one association to ServiceType
	@ManyToOne
	@JoinColumn(name="CR_TYPE")
	private ServiceType serviceType;

	//bi-directional many-to-one association to ServiceWay
	@ManyToOne
	@JoinColumn(name="CR_WAY")
	private ServiceWay serviceWay;

	//bi-directional many-to-one association to TimeDeal
	@ManyToOne
	@JoinColumn(name="CR_DEAL_TIME")
	private TimeDeal timeDeal;
	
	
	

	
	public CustomRecord() {
	}
	public CustomRecord(ServiceType serviceType) {
		super();
		this.serviceType = serviceType;
	}
	public CustomRecord(ServiceWay serviceWay) {
		super();
		this.serviceWay = serviceWay;
	}
	public CustomRecord(TimeDeal timeDeal) {
		super();
		this.timeDeal = timeDeal;
	}
	
	
	
	
	
	
	
	public long getCrId() {
		return this.crId;
	}

	public void setCrId(long crId) {
		this.crId = crId;
	}

	public BigDecimal getContId() {
		return this.contId;
	}

	public void setContId(BigDecimal contId) {
		this.contId = contId;
	}

	public String getContLinkMan() {
		return this.contLinkMan;
	}

	public void setContLinkMan(String contLinkMan) {
		this.contLinkMan = contLinkMan;
	}

	public String getCrContain() {
		return this.crContain;
	}

	public void setCrContain(String crContain) {
		this.crContain = crContain;
	}

	public String getCrExcute() {
		return this.crExcute;
	}

	public void setCrExcute(String crExcute) {
		this.crExcute = crExcute;
	}

	public String getCrFeedback() {
		return this.crFeedback;
	}

	public void setCrFeedback(String crFeedback) {
		this.crFeedback = crFeedback;
	}

	public String getCrRemarks() {
		return this.crRemarks;
	}

	public void setCrRemarks(String crRemarks) {
		this.crRemarks = crRemarks;
	}

	public Date getCrStartDatetime() {
		return this.crStartDatetime;
	}

	public void setCrStartDatetime(Date crStartDatetime) {
		this.crStartDatetime = crStartDatetime;
	}

	public String getCrState() {
		return this.crState;
	}

	public void setCrState(String crState) {
		this.crState = crState;
	}

	public String getCrTheme() {
		return this.crTheme;
	}

	public void setCrTheme(String crTheme) {
		this.crTheme = crTheme;
	}

	public BigDecimal getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(BigDecimal customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public ServiceType getServiceType() {
		return this.serviceType;
	}

	public void setServiceType(ServiceType serviceType) {
		this.serviceType = serviceType;
	}

	public ServiceWay getServiceWay() {
		return this.serviceWay;
	}

	public void setServiceWay(ServiceWay serviceWay) {
		this.serviceWay = serviceWay;
	}

	public TimeDeal getTimeDeal() {
		return this.timeDeal;
	}

	public void setTimeDeal(TimeDeal timeDeal) {
		this.timeDeal = timeDeal;  
	}
	
	
	
	
	
	
	
	

}